/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import eos.moe.dragoncore.api.model.AnimationModel;
/*    */ import eos.moe.dragoncore.api.model.AnimationModelRenderer;
/*    */ import net.minecraft.client.model.ModelRenderer;
/*    */ 
/*    */ 
/*    */ public class yn
/*    */ {
/*    */   public static ModelRenderer v(AnimationModel a, String str) {
/* 11 */     String[] arrayOfString = str.split("\\.");
/* 12 */     if (arrayOfString.length == 1) {
/* 13 */       return a.findPiece(str);
/*    */     }
/* 15 */     AnimationModelRenderer animationModelRenderer = a.getPiece(arrayOfString[0]);
/* 16 */     if (!(animationModelRenderer instanceof vl)) {
/* 17 */       return null;
/*    */     }
/* 19 */     vl vl = (vl)animationModelRenderer;
/* 20 */     for (int i = 1; i < arrayOfString.length; i++) {
/* 21 */       vl = vl.getPiece(arrayOfString[i]);
/* 22 */       if (vl == null)
/* 23 */         return null; 
/*    */     } 
/* 25 */     return vl;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\yn.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */